package com.oepm.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户表实体类")
public class UserPo {
    @ApiModelProperty("用户序号")
    private String id;
    @ApiModelProperty("用户学号")
    private String userid;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("性别")
    private String sex_one;
    @ApiModelProperty("学院")
    private String academy;
    @ApiModelProperty("职称")
    private String rank;
    @ApiModelProperty("专业")
    private String major;
    @ApiModelProperty("角色id")
    private String roleId;
    @ApiModelProperty("角色")
    private String role;
    @ApiModelProperty("当前用户角色id")
    private String userRoleId;
    public String qq;
    @ApiModelProperty("用户邮箱")
    public String email;
    @ApiModelProperty("用户电话")
    public String phone;


    public UserPo(UserVo userVo) {
        this.id = userVo.getId();
        this.userid = userVo.getUserid();
        this.name = userVo.getName();
        this.sex_one = userVo.getSex();
        this.password = userVo.getPassword();
        this.academy = userVo.getAcademy();
        this.major = userVo.getStu_major();
        this.roleId = userVo.getRoleId();
    }
}
